﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classaa
{//1、猫、狗、鸭、猴，（吃、游泳、爬树）

    class Cat : Eat,Iclimb
    {
        public string name { get; set; }
        

        public Cat(string name,string chi):base(chi)
        {
           this.name  = name;
          
        }

        public void climb()
        {
            Console.WriteLine("我是：{0}，我会爬树！",this.name );
        }

        public override void eat()
        {
            Console.WriteLine("我会吃，我爱吃{0}!",this.chi );
        }
    }
}
